package com.xiaoruyuan.firstday.domain.exception;

/**
 * @author zhengqiang
 * @version 1.0
 * @Date 2020/4/24 16:48
 * @Description 业务异常类
 */
public class BusinessException extends RuntimeException {
    /**
     * 异常描述
     */
    private Integer code;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }


    public BusinessException() {
    }

    public BusinessException(String message) {
        super(message);
        this.code = 2;

    }


    public BusinessException(String message, Integer code) {
        super(message);
        this.code = code;
    }



}
